<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <title>首页</title>
    <meta name="description" content="overview & stats" />

    <meta name="viewport" content="width=device-width, initial-scale=1.0" />


    <link href="http://easy-themes.tk/themes/preview/ace/assets/css/bootstrap.min.css" rel="stylesheet">
    <link href="http://easy-themes.tk/themes/preview/ace/assets/css/bootstrap-responsive.min.css" rel="stylesheet">

    <link rel="stylesheet" href="http://easy-themes.tk/themes/preview/ace/assets/css/font-awesome.min.css">
    <!--[if IE 7]>
    <link rel="stylesheet" href="assets/css/font-awesome-ie7.min.css" />
    <![endif]-->


    <!-- page specific plugin styles -->


    <!-- ace styles -->
    <link rel="stylesheet" href="http://easy-themes.tk/themes/preview/ace/assets/css/ace.min.css">
    <link rel="stylesheet" href="http://easy-themes.tk/themes/preview/ace/assets/css/ace-responsive.min.css">
    <link rel="stylesheet" href="http://easy-themes.tk/themes/preview/ace/assets/css/ace-skins.min.css">
    <!--[if lt IE 9]>
    <!--<link rel="stylesheet" href="assets/css/ace-ie.min.css" />-->
    <!--<![endif]&ndash;&gt;-->


    <!-- basic styles -->
    <!--<link href="../Public/css/bootstrap.min.css" rel="stylesheet" />-->
    <!--<link href="../Public/css/bootstrap-responsive.min.css" rel="stylesheet" />-->

    <!--<link rel="stylesheet" href="../Public/css/font-awesome.min.css" />-->
    <!--&lt;!&ndash;[if IE 7]>-->
    <!--<link rel="stylesheet" href="../Public/css/font-awesome-ie7.min.css" />-->
    <!--<![endif]&ndash;&gt;-->


    <!--&lt;!&ndash; page specific plugin styles &ndash;&gt;-->


    <!--&lt;!&ndash; ace styles &ndash;&gt;-->
    <!--<link rel="stylesheet" href="../Public/css/ace.min.css" />-->
    <!--<link rel="stylesheet" href="../Public/css/ace-responsive.min.css" />-->
    <!--<link rel="stylesheet" href="../Public/css/ace-skins.min.css" />-->
    <!--&lt;!&ndash;[if lt IE 9]>-->
    <!--<link rel="stylesheet" href="../Public/css/ace-ie.min.css" />-->
    <!--<![endif]&ndash;&gt;-->

    <link rel="stylesheet" href="../Public/css/common.css" />
</head>

<body>
<div class="navbar navbar-inverse">
<div class="navbar-inner">
<div class="container-fluid">


<a class="brand" href="#"><small><i class="icon-leaf"></i> KONAKONA Admin</small> </a>
<ul class="nav ace-nav pull-right">
    <li class="grey">
        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
            <i class="icon-tasks"></i>
            <span class="badge">4</span>
        </a>
        <ul class="pull-right dropdown-navbar dropdown-menu dropdown-caret dropdown-closer">
            <li class="nav-header">
                <i class="icon-ok"></i> 4 Tasks to complete
            </li>

            <li>
                <a href="#">
                    <div class="clearfix">
                        <span class="pull-left">Software Update</span>
                        <span class="pull-right">65%</span>
                    </div>
                    <div class="progress progress-mini"><div class="bar" style="width:65%"></div></div>
                </a>
            </li>

            <li>
                <a href="#">
                    <div class="clearfix">
                        <span class="pull-left">Hardware Upgrade</span>
                        <span class="pull-right">35%</span>
                    </div>
                    <div class="progress progress-mini progress-danger"><div class="bar" style="width:35%"></div></div>
                </a>
            </li>

            <li>
                <a href="#">
                    <div class="clearfix">
                        <span class="pull-left">Unit Testing</span>
                        <span class="pull-right">15%</span>
                    </div>
                    <div class="progress progress-mini progress-warning"><div class="bar" style="width:15%"></div></div>
                </a>
            </li>

            <li>
                <a href="#">
                    <div class="clearfix">
                        <span class="pull-left">Bug Fixes</span>
                        <span class="pull-right">90%</span>
                    </div>
                    <div class="progress progress-mini progress-success progress-striped active"><div class="bar" style="width:90%"></div></div>
                </a>
            </li>

            <li>
                <a href="#">
                    See tasks with details
                    <i class="icon-arrow-right"></i>
                </a>
            </li>
        </ul>
    </li>


    <li class="purple">
        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
            <i class="icon-bell-alt icon-animated-bell icon-only"></i>
            <span class="badge badge-important">8</span>
        </a>
        <ul class="pull-right dropdown-navbar navbar-pink dropdown-menu dropdown-caret dropdown-closer">
            <li class="nav-header">
                <i class="icon-warning-sign"></i> 8 Notifications
            </li>

            <li>
                <a href="#">
                    <div class="clearfix">
                        <span class="pull-left"><i class="icon-comment btn btn-mini btn-pink"></i> New comments</span>
                        <span class="pull-right badge badge-info">+12</span>
                    </div>
                </a>
            </li>

            <li>
                <a href="#">
                    <i class="icon-user btn btn-mini btn-primary"></i> Bob just signed up as an editor ...
                </a>
            </li>

            <li>
                <a href="#">
                    <div class="clearfix">
                        <span class="pull-left"><i class="icon-shopping-cart btn btn-mini btn-success"></i> New orders</span>
                        <span class="pull-right badge badge-success">+8</span>
                    </div>
                </a>
            </li>

            <li>
                <a href="#">
                    <div class="clearfix">
                        <span class="pull-left"><i class="icon-twitter btn btn-mini btn-info"></i> Followers</span>
                        <span class="pull-right badge badge-info">+4</span>
                    </div>
                </a>
            </li>

            <li>
                <a href="#">
                    See all notifications
                    <i class="icon-arrow-right"></i>
                </a>
            </li>
        </ul>
    </li>


    <li class="green">
        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
            <i class="icon-envelope-alt icon-animated-vertical icon-only"></i>
            <span class="badge badge-success">5</span>
        </a>
        <ul class="pull-right dropdown-navbar dropdown-menu dropdown-caret dropdown-closer">
            <li class="nav-header">
                <i class="icon-envelope"></i> 5 Messages
            </li>

            <li>
                <a href="#">
                    <img alt="Alex's Avatar" class="msg-photo" src="assets/avatars/avatar.png" />
									<span class="msg-body">
										<span class="msg-title">
											<span class="blue">Alex:</span>
											Ciao sociis natoque penatibus et auctor ...
										</span>
										<span class="msg-time">
											<i class="icon-time"></i> <span>a moment ago</span>
										</span>
									</span>
                </a>
            </li>

            <li>
                <a href="#">
                    <img alt="Susan's Avatar" class="msg-photo" src="assets/avatars/avatar3.png" />
									<span class="msg-body">
										<span class="msg-title">
											<span class="blue">Susan:</span>
											Vestibulum id ligula porta felis euismod ...
										</span>
										<span class="msg-time">
											<i class="icon-time"></i> <span>20 minutes ago</span>
										</span>
									</span>
                </a>
            </li>

            <li>
                <a href="#">
                    <img alt="Bob's Avatar" class="msg-photo" src="assets/avatars/avatar4.png" />
									<span class="msg-body">
										<span class="msg-title">
											<span class="blue">Bob:</span>
											Nullam quis risus eget urna mollis ornare ...
										</span>
										<span class="msg-time">
											<i class="icon-time"></i> <span>3:15 pm</span>
										</span>
									</span>
                </a>
            </li>

            <li>
                <a href="#">
                    See all messages
                    <i class="icon-arrow-right"></i>
                </a>
            </li>

        </ul>
    </li>


    <li class="light-blue user-profile">
        <a class="user-menu dropdown-toggle" href="#" data-toggle="dropdown">
            <img alt="Jason's Photo" src="assets/avatars/user.jpg" class="nav-user-photo" />
							<span id="user_info">
								<small>Welcome,</small> Jason
							</span>
            <i class="icon-caret-down"></i>
        </a>
        <ul id="user_menu" class="pull-right dropdown-menu dropdown-yellow dropdown-caret dropdown-closer">
            <li><a href="#"><i class="icon-cog"></i> Settings</a></li>
            <li><a href="#"><i class="icon-user"></i> Profile</a></li>
            <li class="divider"></li>
            <li><a href="#"><i class="icon-off"></i> Logout</a></li>
        </ul>
    </li>




</ul><!--/.ace-nav-->

</div><!--/.container-fluid-->
</div><!--/.navbar-inner-->
</div><!--/.navbar-->

<div class="container-fluid" id="main-container">
    <a href="#" id="menu-toggler"><span></span></a><!-- menu toggler -->

    <div id="sidebar">

        <div id="sidebar-shortcuts">
            <div id="sidebar-shortcuts-large">
                <button class="btn btn-small btn-success"><i class="icon-signal"></i></button>
                <button class="btn btn-small btn-info"><i class="icon-pencil"></i></button>
                <button class="btn btn-small btn-warning"><i class="icon-group"></i></button>
                <button class="btn btn-small btn-danger"><i class="icon-cogs"></i></button>
            </div>
            <div id="sidebar-shortcuts-mini">
                <span class="btn btn-success"></span>
                <span class="btn btn-info"></span>
                <span class="btn btn-warning"></span>
                <span class="btn btn-danger"></span>
            </div>
        </div><!-- #sidebar-shortcuts -->

        <ul class="nav nav-list">

    <li class="active">
        <a href="<?php echo U('Public/main');?>">
            <i class="icon-dashboard"></i>
            <span>首页</span>
        </a>
    </li>

    <li>
        <a href="<?php echo U('Bussiness/index');?>">
            <i class="icon-calendar"></i>
            <span>销量查询</span>

        </a>
    </li>

    <li>
        <a href="#" class="dropdown-toggle" >
            <i class="icon-desktop"></i>
            <span>商品管理</span>
            <b class="arrow icon-angle-down"></b>
        </a>
        <ul class="submenu">
            <li><a href="<?php echo U('Shop/index');?>"><i class="icon-double-angle-right"></i>商品列表</a></li>
            <li><a href="<?php echo U('Shop/add');?>"><i class="icon-double-angle-right"></i>新增商品</a></li>
            <li><a href="<?php echo U('Shop/import');?>"><i class="icon-double-angle-right"></i>导入商品</a></li>
            <li><a href="{<?php echo U('Shop/index');?>}"><i class="icon-double-angle-right"></i>特价商品</a></li>
        </ul>
    </li>


    <li>
        <a href="#" class="dropdown-toggle" >
            <i class="icon-edit"></i>
            <span>会员管理</span>
            <b class="arrow icon-angle-down"></b>
        </a>
        <ul class="submenu">
            <li><a href="<?php echo U('Member/index');?>"><i class="icon-double-angle-right"></i>会员列表</a></li>
            <li><a href="<?php echo U('Member/level');?>"><i class="icon-double-angle-right"></i>等级设置</a></li>
            <li><a href="<?php echo U('Member/credits_setting');?>"><i class="icon-double-angle-right"></i>积分设置</a></li>
            <li><a href="<?php echo U('Member/credits_history');?>"><i class="icon-double-angle-right"></i>积分兑换历史</a></li>
        </ul>
    </li>

    <li>
        <a href="#" class="dropdown-toggle" >
            <i class="icon-desktop"></i>
            <span>分店管理</span>
            <b class="arrow icon-angle-down"></b>
        </a>
        <ul class="submenu">
            <li><a href="<?php echo U('Shop/add');?>"><i class="icon-double-angle-right"></i>分店设置</a></li>
            <li><a href="{<?php echo U('Shop/speacil');?>}"><i class="icon-double-angle-right"></i>帐号管理</a></li>
        </ul>
    </li>


    <li>
        <a href="<?php echo U('Setting/index');?>">
            <i class="icon-list-alt"></i>
            <span>网站设置</span>

        </a>
    </li>

</ul><!--/.nav-list-->

        <div id="sidebar-collapse"><i class="icon-double-angle-left"></i></div>


    </div><!--/#sidebar-->
<div id="main-content" class="clearfix">

    <div id="breadcrumbs">
        <ul class="breadcrumb">
            <li><i class="icon-home"></i> <a href="<?php echo U('Public/main');?>">首页</a><span class="divider"><i
                    class="icon-angle-right"></i></span></li>
            <li><a href="__URL__">商品管理</a> <span class="divider"><i class="icon-angle-right"></i></span></li>
            <li class="active">商品详细</li>
        </ul>
    </div>
    <!--#breadcrumbs-->


    <div id="page-content" class="clearfix">

        <div class="page-header position-relative">
            <h1>商品详细
                <small>
            </h1>
        </div>
        <!--/page-header-->


        <div class="row-fluid">
            <!-- PAGE CONTENT BEGINS HERE -->

            <form class="form-horizontal" action="__SELF__" method="post" enctype="multipart/form-data">

                <div class="control-group">
                    <label class="control-label" for="form-field-1">商品名称</label>

                    <div class="controls">
                        <input type="text" id="form-field-1" name="name" value="<?php echo ($one["name"]); ?>" placeholder="请输入15个字以内">
                    </div>
                </div>

                <div class="control-group">
                    <label class="control-label" for="form-field-2">商品所属分类</label>

                    <div class="controls" id="form-field-2">
                        <select name="cate_id">
                            <?php if(is_array($cate_list)): foreach($cate_list as $key=>$list): ?><option value="<?php echo ($list["id"]); ?>" <?php if(($$list["id"]) == $one['cate_id']): ?>selected<?php endif; ?>><?php echo ($list["name"]); ?></option><?php endforeach; endif; ?>
                        </select>

                    </div>
                </div>


                <div class="control-group">
                    <label class="control-label" for="form-field-4">商品价格</label>

                    <div class="controls">
                        <input class="input-mini" type="text" name="price" value="<?php echo ($one["price"]); ?>" id="form-field-4" placeholder="">￥

                    </div>
                </div>

                <div class="control-group">
                    <label class="control-label" for="form-field-5">商品简介</label>

                    <div class="controls">
                        <input class="span11" type="text" placeholder="" value="<?php echo ($one["content"]); ?>" name="content">

                        <div class="help-block" id="input-span-slider">255个字以内</div>
                    </div>
                </div>


                <div class="control-group">
                    <label class="control-label" for="form-field-6">商品封面图</label>

                    <div class="controls">
                        <input class="ace-tooltip" type="file" id="form-field-6" name="img">
                <span class="help-button ace-popover" data-trigger="hover" data-placement="left"
                      data-content="More details." title="请上传大小为">?</span>
                        <a href="http://<?php echo $_SERVER['HTTP_HOST']; echo ($one["img"]); ?>" target="_blank">查看图片</a>
                    </div>
                </div>

                <div class="control-group">
                    <label class="control-label" for="form-field-6">商品属性</label>

                    <div class="controls">
                        <label>
                            <input name="type" type="radio" value="0" <?php if(($$one["type"]) == "0"): ?>checkbox<?php endif; ?> ><span class="lbl">下架</span>
                        </label>
                        <label>
                            <input name="type" type="radio" value="1" checked <?php if(($$one["type"]) == "1"): ?>checkbox<?php endif; ?>><span class="lbl">普通</span>
                        </label>
                        <label>
                            <input name="type" type="radio" value="2" <?php if(($$one["type"]) == "2"): ?>checkbox<?php endif; ?>><span class="lbl">秒杀</span>
                        </label>
                        <label>
                            <input name="type" type="radio" value="3" <?php if(($$one["type"]) == "3"): ?>checkbox<?php endif; ?>><span class="lbl">促销（折扣）</span>
                        </label>
                    </div>
                </div>


                <div class="form-actions">
                    <input type="hidden" name="id" value="<?php echo ($one["id"]); ?>" />
                    <button class="btn btn-info" type="submit"><i class="icon-ok"></i> 提交</button>
                    &nbsp; &nbsp; &nbsp;
                    <button class="btn" type="reset"><i class="icon-undo"></i> 重置</button>
                </div>


        </div>
        <!--/.fluid-container#main-container-->
        

<a href="#" id="btn-scroll-up" class="btn btn-small btn-inverse">
    <i class="icon-double-angle-up icon-only"></i>
</a>


<!-- basic scripts -->
<script type="text/javascript">
    window.jQuery || document.write("<script src='../Public/js/jquery-1.9.1.min.js'>\x3C/script>");
</script>

<script src="../Public/js/bootstrap.min.js"></script>

<!-- page specific plugin scripts -->

<!--[if lt IE 9]>
<script type="text/javascript" src="../Public/js/excanvas.min.js"></script>
<![endif]-->

<script type="text/javascript" src="../Public/js/jquery-ui-1.10.2.custom.min.js"></script>

<script type="text/javascript" src="../Public/js/jquery.ui.touch-punch.min.js"></script>

<script type="text/javascript" src="../Public/js/jquery.slimscroll.min.js"></script>

<script type="text/javascript" src="../Public/js/jquery.easy-pie-chart.min.js"></script>

<script type="text/javascript" src="../Public/js/jquery.sparkline.min.js"></script>

<script type="text/javascript" src="../Public/js/date.js"></script>

<script type="text/javascript" src="../Public/js/jquery.flot.min.js"></script>

<script type="text/javascript" src="../Public/js/jquery.flot.pie.min.js"></script>

<script type="text/javascript" src="../Public/js/jquery.flot.resize.min.js"></script>


<!-- ace scripts -->
<script src="../Public/js/ace-elements.min.js"></script>
<script src="../Public/js/ace.min.js"></script>


<!-- inline scripts related to this page -->

<script type="text/javascript">

    $(function() {

        $('.dialogs,.comments').slimScroll({
            height: '300px'
        });

        $('#tasks').sortable();
        $('#tasks').disableSelection();
        $('#tasks input:checkbox').removeAttr('checked').on('click', function(){
            if(this.checked) $(this).closest('li').addClass('selected');
            else $(this).closest('li').removeClass('selected');
        });

        var oldie = $.browser.msie && $.browser.version < 9;
        $('.easy-pie-chart.percentage').each(function(){
            var $box = $(this).closest('.infobox');
            var barColor = $(this).data('color') || (!$box.hasClass('infobox-dark') ? $box.css('color') : 'rgba(255,255,255,0.95)');
            var trackColor = barColor == 'rgba(255,255,255,0.95)' ? 'rgba(255,255,255,0.25)' : '#E2E2E2';
            var size = parseInt($(this).data('size')) || 50;
            $(this).easyPieChart({
                barColor: barColor,
                trackColor: trackColor,
                scaleColor: false,
                lineCap: 'butt',
                lineWidth: parseInt(size/10),
                animate: oldie ? false : 1000,
                size: size
            });
        })

        $('.sparkline').each(function(){
            var $box = $(this).closest('.infobox');
            var barColor = !$box.hasClass('infobox-dark') ? $box.css('color') : '#FFF';
            $(this).sparkline('html', {tagValuesAttribute:'data-values', type: 'bar', barColor: barColor , chartRangeMin:$(this).data('min') || 0} );
        });





        var data = [
            { label: "social networks",  data: 38.7, color: "#68BC31"},
            { label: "search engines",  data: 24.5, color: "#2091CF"},
            { label: "ad campaings",  data: 8.2, color: "#AF4E96"},
            { label: "direct traffic",  data: 18.6, color: "#DA5430"},
            { label: "other",  data: 10, color: "#FEE074"}
        ];
        var placeholder = $('#piechart-placeholder').css({'width':'90%' , 'min-height':'150px'});
        $.plot(placeholder, data, {

            series: {
                pie: {
                    show: true,
                    tilt:0.8,
                    highlight: {
                        opacity: 0.25
                    },
                    stroke: {
                        color: '#fff',
                        width: 2
                    },
                    startAngle: 2

                }
            },
            legend: {
                show: true,
                position: "ne",
                labelBoxBorderColor: null,
                margin:[-30,15]
            }
            ,
            grid: {
                hoverable: true,
                clickable: true
            },
            tooltip: true, //activate tooltip
            tooltipOpts: {
                content: "%s : %y.1",
                shifts: {
                    x: -30,
                    y: -50
                }
            }

        });


        var $tooltip = $("<div class='tooltip top in' style='display:none;'><div class='tooltip-inner'></div></div>").appendTo('body');
        placeholder.data('tooltip', $tooltip);
        var previousPoint = null;

        placeholder.on('plothover', function (event, pos, item) {
            if(item) {
                if (previousPoint != item.seriesIndex) {
                    previousPoint = item.seriesIndex;
                    var tip = item.series['label'] + " : " + item.series['percent']+'%';
                    $(this).data('tooltip').show().children(0).text(tip);
                }
                $(this).data('tooltip').css({top:pos.pageY + 10, left:pos.pageX + 10});
            } else {
                $(this).data('tooltip').hide();
                previousPoint = null;
            }

        });






        var d1 = [];
        for (var i = 0; i < Math.PI * 2; i += 0.5) {
            d1.push([i, Math.sin(i)]);
        }

        var d2 = [];
        for (var i = 0; i < Math.PI * 2; i += 0.5) {
            d2.push([i, Math.cos(i)]);
        }

        var d3 = [];
        for (var i = 0; i < Math.PI * 2; i += 0.2) {
            d3.push([i, Math.tan(i)]);
        }


        var sales_charts = $('#sales-charts').css({'width':'100%' , 'height':'220px'});
        $.plot("#sales-charts", [
            { label: "Domains", data: d1 },
            { label: "Hosting", data: d2 },
            { label: "Services", data: d3 }
        ], {
            hoverable: true,
            shadowSize: 0,
            series: {
                lines: { show: true },
                points: { show: true }
            },
            xaxis: {
                tickLength: 0
            },
            yaxis: {
                ticks: 10,
                min: -2,
                max: 2,
                tickDecimals: 3
            },
            grid: {
                backgroundColor: { colors: [ "#fff", "#fff" ] },
                borderWidth: 1,
                borderColor:'#555'
            }
        });


        $('[data-rel="tooltip"]').tooltip();
    })




</script>

</body>
</html>